diff --git a/src/backend/DeLong.Application/DTOs/Prices/PriceResultDto.cs b/src/backend/DeLong.Application/DTOs/Prices/PriceResultDto.cs
index 1c98bc4..75a17cd 100644
--- a/src/backend/DeLong.Application/DTOs/Prices/PriceResultDto.cs
+++ b/src/backend/DeLong.Application/DTOs/Prices/PriceResultDto.cs
@@ -19,4 +19,5 @@ public class PriceResultDto
public decimal SellingPrice { get; set; } // Sotish narxi
public string UnitOfMeasure { get; set; } = string.Empty; // kg,dona,karobka,litr
public decimal Quantity { get; set; } // miqdori
+ public DateTimeOffset CreatedAt { get; set; }
}
diff --git a/src/backend/DeLong.Infrastructure/Migrations/20250412171304_Initial.Designer.cs b/src/backend/DeLong.Infrastructure/Migrations/20250412171304_Initial.Designer.cs
deleted file mode 100644
index 3ad6a85..0000000
--- a/src/backend/DeLong.Infrastructure/Migrations/20250412171304_Initial.Designer.cs
+++ /dev/null
@@ -1,1405 +0,0 @@
-//
-using System;
-using DeLong.Infrastructure.Contexts;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
-
-#nullable disable
-
-namespace DeLong.Data.Migrations
-{
- [DbContext(typeof(AppDbContext))]
- [Migration("20250412171304_Initial")]
- partial class Initial
- {
- ///
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "7.0.20")
- .HasAnnotation("Relational:MaxIdentifierLength", 63);
-
- NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
-
- modelBuilder.Entity("DeLong.Domain.Entities.Asset", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("FileName")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("FilePath")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.ToTable("Assets");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.Branch", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("BranchName")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("Location")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.ToTable("Branches");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.CashRegister", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CashWarehouseId")
- .HasColumnType("bigint");
-
- b.Property("ClosedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("OpenedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.Property("UsdBalance")
- .HasColumnType("numeric");
-
- b.Property("UserId")
- .HasColumnType("bigint");
-
- b.Property("UzpBalance")
- .HasColumnType("numeric");
-
- b.Property("UzsBalance")
- .HasColumnType("numeric");
-
- b.HasKey("Id");
-
- b.HasIndex("CashWarehouseId");
-
- b.HasIndex("UserId");
-
- b.ToTable("CashRegisters");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.CashTransfer", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("Amount")
- .HasColumnType("numeric");
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CashRegisterId")
- .HasColumnType("bigint");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("Currency")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("From")
- .HasColumnType("text");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("Note")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("To")
- .HasColumnType("text");
-
- b.Property("TransferDate")
- .HasColumnType("timestamp with time zone");
-
- b.Property("TransferType")
- .HasColumnType("integer");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.HasIndex("CashRegisterId");
-
- b.ToTable("CashTransfers");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.CashWarehouse", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.Property("UsdBalance")
- .HasColumnType("numeric");
-
- b.Property("UzpBalance")
- .HasColumnType("numeric");
-
- b.Property("UzsBalance")
- .HasColumnType("numeric");
-
- b.HasKey("Id");
-
- b.ToTable("CashWarehouses");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.Category", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("Description")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("Name")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.ToTable("Categories");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.ChangeHistory", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("ChangeType")
- .IsRequired()
- .HasMaxLength(20)
- .HasColumnType("character varying(20)");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("EntityId")
- .HasColumnType("bigint");
-
- b.Property("EntityName")
- .IsRequired()
- .HasMaxLength(50)
- .HasColumnType("character varying(50)");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("NewValues")
- .HasColumnType("text");
-
- b.Property("OldValues")
- .HasColumnType("text");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.ToTable("ChangeHistories");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.Customer", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("BankAccount")
- .HasColumnType("text");
-
- b.Property("BankName")
- .HasColumnType("text");
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CompanyName")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("EmployeeName")
- .HasColumnType("text");
-
- b.Property("EmployeePhone")
- .HasColumnType("text");
-
- b.Property("INN")
- .HasColumnType("integer");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("MFO")
- .HasColumnType("text");
-
- b.Property("ManagerName")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("ManagerPhone")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("OKONX")
- .HasColumnType("text");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.Property("YurAddress")
- .HasColumnType("text");
-
- b.HasKey("Id");
-
- b.ToTable("Customers");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.Debt", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("DueDate")
- .HasColumnType("timestamp with time zone");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("IsSettled")
- .HasColumnType("boolean");
-
- b.Property("RemainingAmount")
- .HasColumnType("numeric");
-
- b.Property("SaleId")
- .HasColumnType("bigint");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.HasIndex("SaleId");
-
- b.ToTable("Debts");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.DebtPayment", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("Amount")
- .HasColumnType("numeric");
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("DebtId")
- .HasColumnType("bigint");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("PaymentDate")
- .HasColumnType("timestamp with time zone");
-
- b.Property("PaymentMethod")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.HasIndex("DebtId");
-
- b.ToTable("DebtPayments");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.Discount", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("Amount")
- .HasColumnType("numeric");
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("SaleId")
- .HasColumnType("bigint");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.HasIndex("SaleId");
-
- b.ToTable("Discounts");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.Employee", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("FullName")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("Password")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("Phone")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("Role")
- .HasColumnType("integer");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.Property("Username")
- .IsRequired()
- .HasColumnType("text");
-
- b.HasKey("Id");
-
- b.HasIndex("BranchId");
-
- b.ToTable("Employees");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.KursDollar", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("AdmissionDollar")
- .HasColumnType("numeric");
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("SellingDollar")
- .HasColumnType("numeric");
-
- b.Property("TodayDate")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.ToTable("KursDollars");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.Payment", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("Amount")
- .HasColumnType("numeric");
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("SaleId")
- .HasColumnType("bigint");
-
- b.Property("Type")
- .HasColumnType("integer");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.HasIndex("SaleId");
-
- b.ToTable("Payments");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.Price", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CostPrice")
- .HasColumnType("numeric");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("ProductId")
- .HasColumnType("bigint");
-
- b.Property("Quantity")
- .HasColumnType("numeric");
-
- b.Property("SellingPrice")
- .HasColumnType("numeric");
-
- b.Property("SupplierId")
- .HasColumnType("bigint");
-
- b.Property("UnitOfMeasure")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.HasIndex("ProductId");
-
- b.HasIndex("SupplierId");
-
- b.ToTable("Prices");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.Product", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CategoryId")
- .HasColumnType("bigint");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("IsActive")
- .HasColumnType("boolean");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("MinStockLevel")
- .HasColumnType("numeric");
-
- b.Property("Name")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("ProductSign")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.HasIndex("CategoryId");
-
- b.ToTable("Products");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.RefreshToken", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("integer");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("ExpiryDate")
- .HasColumnType("timestamp with time zone");
-
- b.Property("Token")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("Username")
- .IsRequired()
- .HasColumnType("text");
-
- b.HasKey("Id");
-
- b.HasIndex("Token")
- .IsUnique();
-
- b.ToTable("RefreshTokens");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.ReturnProduct", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("CustomerId")
- .HasColumnType("bigint");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("ProductId")
- .HasColumnType("bigint");
-
- b.Property("ProductName")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("Quantity")
- .HasColumnType("numeric");
-
- b.Property("Reason")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("ReturnSumma")
- .HasColumnType("numeric");
-
- b.Property("SaleId")
- .HasColumnType("bigint");
-
- b.Property("UnitOfMeasure")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.Property("UserId")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.HasIndex("CustomerId");
-
- b.HasIndex("UserId");
-
- b.ToTable("ReturnProducts");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.Sale", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("CustomerId")
- .HasColumnType("bigint");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("TotalAmount")
- .HasColumnType("numeric");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.Property("UserId")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.HasIndex("CustomerId");
-
- b.HasIndex("UserId");
-
- b.ToTable("Sales");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.SaleItem", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("ProductId")
- .HasColumnType("bigint");
-
- b.Property("Quantity")
- .HasColumnType("numeric");
-
- b.Property("SaleId")
- .HasColumnType("bigint");
-
- b.Property("UnitOfMeasure")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("UnitPrice")
- .HasColumnType("numeric");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.HasIndex("ProductId");
-
- b.HasIndex("SaleId");
-
- b.ToTable("SaleItems");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.Supplier", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd()
- .HasColumnType("bigint");
-
- NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property("Id"));
-
- b.Property("BranchId")
- .HasColumnType("bigint");
-
- b.Property("ContactInfo")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("CreatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("CreatedBy")
- .HasColumnType("bigint");
-
- b.Property("IsDeleted")
- .HasColumnType("boolean");
-
- b.Property("Name")
- .IsRequired()
- .HasColumnType("text");
-
- b.Property("UpdatedAt")
- .HasColumnType("timestamp with time zone");
-
- b.Property("UpdatedBy")
- .HasColumnType("bigint");
-
- b.HasKey("Id");
-
- b.ToTable("Suppliers");
- });
-
- modelBuilder.Entity("DeLong.Domain.Entities.Transaction", b =>
- {
- b.Property