// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Volo.Abp.EntityFrameworkCore; using Win.Sfs.SettleAccount; namespace Win.Sfs.SettleAccount.Migrations { [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] partial class SettleAccountHttpApiHostMigrationsDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) .HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("ProductVersion", "5.0.8") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasColumnType("nvarchar(450)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("KBCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Qty") .HasPrecision(18, 2) .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("State") .HasMaxLength(36) .HasColumnType("int"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_btcarconsign"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("ConsignQty") .HasColumnType("decimal(18,2)"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DateTime") .HasColumnType("datetime2"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DeliveryDateTime") .HasColumnType("datetime2"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("MaterialDesc") .HasColumnType("nvarchar(max)"); b.Property("NeedQty") .HasPrecision(18, 2) .HasColumnType("decimal(18,2)"); b.Property("OrderKBCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ReceiveAreaCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ReceiveAreaName") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("State") .HasMaxLength(36) .HasColumnType("int"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_btcarkb"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BarCode") .HasColumnType("nvarchar(450)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasColumnType("nvarchar(450)"); b.Property("DT") .HasColumnType("datetime2"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("OnLineDateTime") .HasColumnType("datetime2"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("VIN") .HasColumnType("nvarchar(450)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_btcarseqfirst"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BarCode") .HasColumnType("nvarchar(450)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("CMSerie") .HasColumnType("nvarchar(max)"); b.Property("CMSerieRemark") .HasColumnType("nvarchar(max)"); b.Property("CarModelShort") .HasColumnType("nvarchar(max)"); b.Property("CarName") .HasColumnType("nvarchar(max)"); b.Property("CarType") .HasColumnType("nvarchar(max)"); b.Property("Code") .HasColumnType("nvarchar(max)"); b.Property("Color") .HasColumnType("nvarchar(max)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasColumnType("nvarchar(450)"); b.Property("DateTime") .HasColumnType("datetime2"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("EngineCode") .HasColumnType("nvarchar(max)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("InColor") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("OnLineDateTime") .HasColumnType("datetime2"); b.Property("OrderStateNum") .HasColumnType("nvarchar(max)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("PlanDate") .HasColumnType("datetime2"); b.Property("PlanSeq") .HasColumnType("int"); b.Property("PlanTypeRemark") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SpecialCarTypeRemark") .HasColumnType("nvarchar(max)"); b.Property("StateName") .HasColumnType("nvarchar(max)"); b.Property("TopSeq") .HasColumnType("nvarchar(max)"); b.Property("VIN") .HasColumnType("nvarchar(450)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_btcarseqsecond"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BarCode") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DT") .HasColumnType("datetime2"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("OnLineDateTime") .HasColumnType("datetime2"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .HasMaxLength(1024) .HasColumnType("nvarchar(1024)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("VIN") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_btcarseq"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BeginTime") .HasColumnType("datetime2"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CreatorName") .HasColumnType("nvarchar(max)"); b.Property("CustomCode") .HasColumnType("nvarchar(max)"); b.Property("CustomName") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("DocumentStatus") .HasColumnType("int"); b.Property("DocumentType") .HasColumnType("int"); b.Property("Enabled") .HasColumnType("bit"); b.Property("EndTime") .HasColumnType("datetime2"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("BranchId", "DocumentNumber") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_bt_not_kb_consign_report"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("ConsignQty") .HasColumnType("decimal(18,2)"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomCode") .HasColumnType("nvarchar(450)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DeliveryDateTime") .HasColumnType("datetime2"); b.Property("DocumentId") .HasColumnType("uniqueidentifier"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .HasColumnType("nvarchar(450)"); b.Property("MaterialDesc") .HasColumnType("nvarchar(max)"); b.Property("NeedQty") .HasColumnType("decimal(18,2)"); b.Property("OrderKBCode") .HasColumnType("nvarchar(450)"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("State") .HasColumnType("int"); b.Property("Version") .HasColumnType("nvarchar(450)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("DocumentId"); b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_bt_not_kb_consign_report_detail"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CreatorName") .HasColumnType("nvarchar(max)"); b.Property("CustomCode") .HasColumnType("nvarchar(max)"); b.Property("CustomName") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("DocumentStatus") .HasColumnType("int"); b.Property("DocumentType") .HasColumnType("int"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("BranchId", "DocumentNumber") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_bt_seq_kb_diff_report"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomCode") .HasColumnType("nvarchar(450)"); b.Property("DT") .HasColumnType("datetime2"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DiffQty") .HasColumnType("decimal(18,2)"); b.Property("DocumentId") .HasColumnType("uniqueidentifier"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("KBQty") .HasColumnType("decimal(18,2)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SeqQty") .HasColumnType("decimal(18,2)"); b.Property("Version") .HasColumnType("nvarchar(450)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("DocumentId"); b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_bt_seq_kb_diff_report_detail"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BomLevel") .HasColumnType("int"); b.Property("BomType") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ChildItemCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ChildItemDesc") .HasMaxLength(2048) .HasColumnType("nvarchar(2048)"); b.Property("ChildItemUom") .HasColumnType("nvarchar(max)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("EffectiveTime") .HasColumnType("datetime2"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExpireTime") .HasColumnType("datetime2"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IssuePosition") .HasColumnType("nvarchar(max)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("OperateProcess") .HasColumnType("int"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("ParentItemCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ParentItemDesc") .HasMaxLength(2048) .HasColumnType("nvarchar(2048)"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("ScrapPercent") .HasColumnType("decimal(18,2)"); b.Property("Version") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("ParentItemCode", "ChildItemCode", "Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_bom"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Address") .HasMaxLength(2048) .HasColumnType("nvarchar(2048)"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("Contact") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("ContactEmail") .HasColumnType("nvarchar(max)"); b.Property("ContactFax") .HasColumnType("nvarchar(max)"); b.Property("ContactPhone") .HasColumnType("nvarchar(max)"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CurrencyId") .HasColumnType("uniqueidentifier"); b.Property("CustomerType") .HasColumnType("int"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasMaxLength(2048) .HasColumnType("nvarchar(2048)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("TaxRate") .HasColumnType("decimal(18,2)"); b.HasKey("Id"); b.HasIndex("BranchId", "Code") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_customer"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ChildItemCode") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("EffectiveTime") .HasColumnType("datetime2"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("FailureTime") .HasColumnType("datetime2"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("ParentItemCode") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_customer_bom"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_btcarconsign_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DateTime") .HasColumnType("datetime2"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_btcarkb_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DT") .HasColumnType("datetime2"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_btcarseqfirst_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DateTime") .HasColumnType("datetime2"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_btcarseqsecond_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DT") .HasColumnType("datetime2"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_btcarseq_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_bom_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("CarCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("CarCode", "MaterialCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_carmaterialconfig"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Description") .HasColumnType("nvarchar(max)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Project") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Value") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Project", "Value") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_code"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("State") .HasColumnType("int"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.Property("Year") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Year", "Period") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_control"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_estinventory_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("MaterialDesc") .HasColumnType("nvarchar(max)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Postingperiod") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("PurchaseDocument") .HasColumnType("nvarchar(max)"); b.Property("PurchaseLine") .HasColumnType("nvarchar(max)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SupplierCode") .HasColumnType("nvarchar(max)"); b.Property("SupplierDesc") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_estsum"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_estsum_verion"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BeginTime") .HasColumnType("datetime2"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("CP5Time") .HasColumnType("datetime2"); b.Property("CP7Time") .HasColumnType("datetime2"); b.Property("ChassisNumber") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ChassisNumber2") .HasColumnType("nvarchar(450)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("EndTime") .HasColumnType("datetime2"); b.Property("ErpMaterialCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Extend1") .HasColumnType("nvarchar(max)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("KENNCode") .HasColumnType("nvarchar(max)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Model") .HasColumnType("nvarchar(450)"); b.Property("OrderBillNum") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SequenceNumber") .HasColumnType("nvarchar(max)"); b.Property("SettledQty") .HasColumnType("decimal(18,2)"); b.Property("State") .HasColumnType("int"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") .IsUnique() .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); b.ToTable("Set_fis_th"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("Code") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Desc") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("Code") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_factory"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("MaterialDesc") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("State") .HasColumnType("int"); b.Property("VIN") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_hqcon"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_hqcon_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("KBCode") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("KBCodeExtend") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("MaterialDesc") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("State") .HasColumnType("int"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_hqspcon"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_hqspcon_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("ConsignQty") .HasColumnType("decimal(18,2)"); b.Property("CreateTime") .HasColumnType("datetime2"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("KBCode") .HasColumnType("nvarchar(max)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("MaterialDesc") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("NeedQty") .HasColumnType("decimal(18,2)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("State") .HasColumnType("int"); b.Property("VIN") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_hqkb"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_hqkb_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("ConsignQty") .HasColumnType("decimal(18,2)"); b.Property("CreateTime") .HasColumnType("datetime2"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("KBCode") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("MaterialDesc") .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("NeedQty") .HasColumnType("decimal(18,2)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("State") .HasColumnType("int"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") .IsUnique() .HasFilter("[MaterialCode] IS NOT NULL"); b.ToTable("Set_hqspkb"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_hqspkb_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsCheck") .HasColumnType("bit"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("NewColumnName") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("OldColumnName") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ProjectName") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Set_importmap"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasColumnType("nvarchar(450)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Version", "Factory") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_inventory_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Amt") .HasColumnType("decimal(18,2)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("Extend") .HasColumnType("nvarchar(max)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("MaterialDesc") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Period") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); b.Property("Version") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Year") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.ToTable("Set_Invoice"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Year") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.ToTable("Set_InvoiceVersion"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Backorder") .HasColumnType("nvarchar(max)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("CC") .HasColumnType("nvarchar(max)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtendedMargin") .HasColumnType("decimal(18,2)"); b.Property("ExtendedPrice") .HasColumnType("decimal(18,2)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("MaterialDesc") .HasColumnType("nvarchar(max)"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Price") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Sales") .HasColumnType("nvarchar(max)"); b.Property("SubAcct") .HasColumnType("nvarchar(max)"); b.Property("UM") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Period", "Version", "MaterialCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_item_invoice_price"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Year") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.ToTable("Set_item_invoice_price_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_jfcarconsign_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_jfcarkb_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AppraisalCategory") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ErpMaterialCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialDesc") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("MaterialProperty") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SettleMaterialCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ShipMaterailCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Version") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.ToTable("Set_MaterialRelationshipDetail"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Remark") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Version") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Year") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.ToTable("Set_MaterialRelationshipVersion"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("EstimateType") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("EstimateTypeDesc") .HasColumnType("nvarchar(max)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("MaterialDesc") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Unit") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("MaterialCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_material"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BeginDate") .HasColumnType("datetime2"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("EndDate") .HasColumnType("datetime2"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Price") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Type") .HasColumnType("int"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Set_PriceList"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Year") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.ToTable("Set_PriceListVersion"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecMatch.SecMatchBase", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("Buyer") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DiffAmount") .HasColumnType("decimal(18,2)"); b.Property("DiffPrice") .HasColumnType("decimal(18,2)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Index") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("IsDiffNumber") .HasColumnType("bit"); b.Property("IsSettle") .HasColumnType("nvarchar(max)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialDesc") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("MaterialPartCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Model") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("PartType") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Price") .HasColumnType("decimal(18,2)"); b.Property("RealSettlementNumber") .HasColumnType("decimal(18,2)"); b.Property("RealSettlementPrice") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SettleMentPartCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SettlementNumber") .HasColumnType("decimal(18,2)"); b.Property("SettlementPrice") .HasColumnType("decimal(18,2)"); b.Property("SupplierCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SupplierName") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SupplyProportion") .HasMaxLength(50) .HasColumnType("decimal(18,2)"); b.Property("TheoreticalSettlementNumber") .HasColumnType("decimal(18,2)"); b.Property("UsedNumber") .HasMaxLength(50) .HasColumnType("decimal(18,2)"); b.Property("Version") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.ToTable("Set_SecMatchBase"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Amt") .HasColumnType("decimal(18,2)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("Buyer") .HasColumnType("nvarchar(max)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerComponentCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("CustomerMaterialCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("HasChanged") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SupplierCode") .HasColumnType("nvarchar(450)"); b.Property("Total") .HasColumnType("decimal(18,2)"); b.Property("Version") .HasColumnType("nvarchar(450)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_sec_adj"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasColumnType("nvarchar(450)"); b.Property("Year") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_sec_adj_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Amt") .HasColumnType("decimal(18,2)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("Buyer") .HasColumnType("nvarchar(max)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("HasChanged") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SupplierCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Total") .HasColumnType("decimal(18,2)"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("SupplierCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_sec_dis"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_sec_dis_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomItemCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("CustomItemPrice") .HasColumnType("decimal(18,2)"); b.Property("CustomSubItemCode") .HasColumnType("nvarchar(450)"); b.Property("CustomSubItemPrice") .HasColumnType("decimal(18,2)"); b.Property("CustomerCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SupplierCode") .HasColumnType("nvarchar(450)"); b.Property("SupplierDesc") .HasColumnType("nvarchar(max)"); b.Property("SupplyProportion") .HasColumnType("nvarchar(max)"); b.Property("SupplyProportionPrice") .HasColumnType("decimal(18,2)"); b.Property("Version") .HasColumnType("nvarchar(450)"); b.Property("Year") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_sec_ratio"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasColumnType("nvarchar(450)"); b.Property("Year") .IsRequired() .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_sec_ratio_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("CP5A") .HasColumnType("datetime2"); b.Property("CP7") .HasColumnType("datetime2"); b.Property("ChassisNumber") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("KENNCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Model") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SettleYear") .HasColumnType("nvarchar(max)"); b.Property("SettlementID") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("SettlementSupplier") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("state") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("state"); b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); b.ToTable("Set_Settle"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_Settle_Version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("CP5A") .HasColumnType("datetime2"); b.Property("CP7") .HasColumnType("datetime2"); b.Property("ChassisNumber") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("KENNCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Model") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SettleYear") .HasColumnType("nvarchar(max)"); b.Property("SettlementID") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("SettlementSupplier") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("UnsettledReason") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("state") .HasColumnType("int"); b.HasKey("Id"); b.HasIndex("state"); b.HasIndex("Version", "ChassisNumber", "MaterialCode") .IsUnique(); b.ToTable("Set_Unsettle"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_Unsettle_Version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Year") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.ToTable("Set_SettlementCrossReference_Version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BomMaterialCode") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("Buyer") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialDesc") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Model") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("PartType") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Period") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SettlementMaterialCode") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SupplierCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SupplierDesc") .HasMaxLength(128) .HasColumnType("nvarchar(128)"); b.Property("Version") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Year") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.HasIndex("Version", "SettlementMaterialCode", "BomMaterialCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_SettlementCrossReference"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ApplicableFunction") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ErpSparePartCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ErpSparePartName") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Model") .HasColumnType("nvarchar(max)"); b.Property("PartType") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("PerCarNum") .HasMaxLength(50) .HasColumnType("decimal(18,2)"); b.Property("Period") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Price") .HasMaxLength(50) .HasColumnType("decimal(18,2)"); b.Property("ProductLine") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("QADCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("QuantityPrice") .HasMaxLength(50) .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SettlementPartCode") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SettlementPartDesc") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SupplierCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SupplierName") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("SupplyProportion") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Version") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.ToTable("Set_SettlementPakAndSpareParts"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Year") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.ToTable("Set_SettlementPakAndSpareParts_Version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Model") .HasColumnType("nvarchar(max)"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Price") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SettlementPartCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("SettlementPartDesc") .HasMaxLength(2048) .HasColumnType("nvarchar(2048)"); b.Property("Uom") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_settlement_part"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Year") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.ToTable("Set_settlement_part_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("CustomerDesc") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("State") .HasColumnType("int"); b.Property("Storagelocation") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Storagelocation", "CustomerCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_customerlocation"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ActionName") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(50) .HasColumnType("nvarchar(50)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("Creator") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DownFileName") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("Email") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("Error") .HasColumnType("nvarchar(max)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("FileName") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Name") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("RealDownFileName") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("RealFileName") .HasMaxLength(500) .HasColumnType("nvarchar(500)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("ServiceName") .HasMaxLength(300) .HasColumnType("nvarchar(300)"); b.Property("State") .HasColumnType("nvarchar(max)"); b.Property("TaskId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Type") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Set_TaskJob"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWKanBan.KanBanSettle", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Batch") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("Extend") .HasColumnType("nvarchar(max)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Flag") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("Kanban") .IsRequired() .HasMaxLength(150) .HasColumnType("nvarchar(150)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(150) .HasColumnType("nvarchar(150)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("PartType") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Relation") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SettleDate") .HasColumnType("datetime2"); b.Property("SettleInputDate") .HasColumnType("datetime2"); b.Property("State") .HasColumnType("nvarchar(max)"); b.Property("SupplierCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("Kanban", "MaterialCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_KanBanSettle"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWKanBan.KanBanVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_KanBanSettle_Version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWScrapClaims.ScrapClaims", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("Amt") .HasColumnType("decimal(18,2)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("Extend") .HasColumnType("nvarchar(max)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("MaterialDesc") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Period") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasMaxLength(1000) .HasColumnType("nvarchar(1000)"); b.Property("Type") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Version") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Year") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.ToTable("Set_ScrapClaims"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWScrapClaims.ScrapClaimsVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_ScrapClaims_Version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWSparePart.SparePart", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AccountNum") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("AmountNoTax") .HasColumnType("decimal(18,2)"); b.Property("BatchNo") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DeliveryLineNum") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("DeliveryOrderNo") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("Extend") .HasMaxLength(250) .HasColumnType("nvarchar(250)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("FactoryName") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("GermanInvoiceNo") .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("InvoicedQty") .HasColumnType("decimal(18,2)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("LineNumber") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(150) .HasColumnType("nvarchar(150)"); b.Property("MaterialDesc") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("PurchaseOrderNo") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("PurchaseOrderNoItem") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("PurchaseOrderNoText") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("PurchasePriceNoTax") .HasColumnType("decimal(18,2)"); b.Property("PurchaseType") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ReceiptQty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SpareDate") .HasColumnType("datetime2"); b.Property("TaxCode") .HasColumnType("nvarchar(max)"); b.Property("TaxRate") .HasColumnType("decimal(18,2)"); b.Property("Unit") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Version") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_SparePart"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWSparePart.SparePartVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_SparePart_Version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BillNumber") .HasColumnType("nvarchar(max)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasColumnType("nvarchar(max)"); b.Property("InvoiceQty") .HasColumnType("decimal(18,2)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("MaterialDesc") .HasColumnType("nvarchar(max)"); b.Property("MaterialDocument") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("MaterialDocumentLine") .HasColumnType("nvarchar(450)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("PostingDate") .HasColumnType("datetime2"); b.Property("PurchaseDocument") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("PurchaseLine") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ReceiveQty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Source") .HasColumnType("nvarchar(max)"); b.Property("StorageLocation") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("SupplierCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("SupplierDesc") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") .IsUnique() .HasFilter("[MaterialDocumentLine] IS NOT NULL"); b.ToTable("Set_estdetail"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CreatorName") .HasColumnType("nvarchar(max)"); b.Property("CustomCode") .HasColumnType("nvarchar(max)"); b.Property("CustomName") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("DocumentStatus") .HasColumnType("int"); b.Property("DocumentType") .HasColumnType("int"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("BranchId", "DocumentNumber") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_estimate_stock_report"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DiffQty") .HasColumnType("decimal(18,2)"); b.Property("DocumentId") .HasColumnType("uniqueidentifier"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("EstimationQty") .HasColumnType("decimal(18,2)"); b.Property("EstimationType") .HasColumnType("nvarchar(max)"); b.Property("EstimationTypeDesc") .HasColumnType("nvarchar(max)"); b.Property("FgQty") .HasColumnType("decimal(18,2)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("ItemCode") .HasColumnType("nvarchar(450)"); b.Property("ItemDesc") .HasColumnType("nvarchar(max)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("StockQty") .HasColumnType("decimal(18,2)"); b.Property("UnSettledQty") .HasColumnType("decimal(18,2)"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("DocumentId"); b.HasIndex("BranchId", "DocumentId", "ItemCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_estimate_stock_report_detail"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BeginTime") .HasColumnType("datetime2"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("CP5Time") .HasColumnType("datetime2"); b.Property("CP7Time") .HasColumnType("datetime2"); b.Property("ChassisNumber") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ChassisNumber2") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("EndTime") .HasColumnType("datetime2"); b.Property("ErpMaterialCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Extend1") .HasColumnType("nvarchar(max)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("FISYear") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("ItemCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("KENNCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Model") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("OrderBillNum") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SequenceNumber") .HasColumnType("nvarchar(max)"); b.Property("SettleState") .HasColumnType("int"); b.Property("SettledQty") .HasColumnType("decimal(18,2)"); b.Property("State") .HasColumnType("int"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("ChassisNumber2", "KENNCode"); b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); b.ToTable("Set_fis"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BeginTime") .HasColumnType("datetime2"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("CP5Time") .HasColumnType("datetime2"); b.Property("CP7Time") .HasColumnType("datetime2"); b.Property("ChassisNumber") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ChassisNumber2") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("EndTime") .HasColumnType("datetime2"); b.Property("ErpMaterialCode") .HasColumnType("nvarchar(max)"); b.Property("Extend1") .HasColumnType("nvarchar(max)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("FISYear") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("ItemCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("KENNCode") .HasColumnType("nvarchar(max)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Model") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("OrderBillNum") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SequenceNumber") .HasColumnType("nvarchar(max)"); b.Property("SettleState") .HasColumnType("int"); b.Property("SettledQty") .HasColumnType("decimal(18,2)"); b.Property("State") .HasColumnType("int"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") .IsUnique() .HasFilter("[Model] IS NOT NULL"); b.ToTable("Set_fis_extend"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BeginDate") .HasColumnType("datetime2"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("EndDate") .HasColumnType("datetime2"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Model") .HasColumnType("nvarchar(max)"); b.Property("Period") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_fis_version"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AppraisalCategory") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("AppraisalDesc") .HasColumnType("nvarchar(max)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("EndingInventoryQty") .HasColumnType("decimal(18,2)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("Factory") .HasColumnType("nvarchar(max)"); b.Property("InputQty") .HasColumnType("decimal(18,2)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("MaterialDesc") .HasColumnType("nvarchar(max)"); b.Property("OpeningInventoryQty") .HasColumnType("decimal(18,2)"); b.Property("OutputQty") .HasColumnType("decimal(18,2)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Price") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("StorageLocation") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("StorageLocationDesc") .HasColumnType("nvarchar(max)"); b.Property("Unit") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("Version", "MaterialCode", "StorageLocation") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_inventory"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasColumnType("nvarchar(450)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("MaterialDesc") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("PABillNum") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Qty") .HasPrecision(18, 2) .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("State") .HasMaxLength(36) .HasColumnType("int"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_jfcarconsign"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BillNum") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("ConsignQty") .HasColumnType("decimal(18,2)"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .IsRequired() .HasColumnType("nvarchar(450)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("InStockQty") .HasPrecision(18, 2) .HasColumnType("decimal(18,2)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("MaterialDesc") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("OnLineDateTime") .HasColumnType("datetime2"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("State") .HasMaxLength(36) .HasColumnType("int"); b.Property("Version") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_jfcarkb"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BeginTime") .HasColumnType("datetime2"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CreatorName") .HasColumnType("nvarchar(max)"); b.Property("CustomCode") .HasColumnType("nvarchar(max)"); b.Property("CustomName") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("DocumentStatus") .HasColumnType("int"); b.Property("DocumentType") .HasColumnType("int"); b.Property("Enabled") .HasColumnType("bit"); b.Property("EndTime") .HasColumnType("datetime2"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("BranchId", "DocumentNumber") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_jf_not_kb_consign_report"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BillNum") .HasColumnType("nvarchar(450)"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("ConsignQty") .HasColumnType("decimal(18,2)"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomCode") .HasColumnType("nvarchar(450)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DocumentId") .HasColumnType("uniqueidentifier"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("InStockQty") .HasColumnType("decimal(18,2)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .HasColumnType("nvarchar(450)"); b.Property("MaterialDesc") .HasColumnType("nvarchar(max)"); b.Property("OnLineDateTime") .HasColumnType("datetime2"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("State") .HasColumnType("int"); b.Property("Version") .HasColumnType("nvarchar(450)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_jf_not_kb_consign_report_detail"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("AppraisalCategory") .HasColumnType("nvarchar(max)"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ErpMaterialCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialDesc") .HasColumnType("nvarchar(max)"); b.Property("MaterialProperty") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SettleMaterialCode") .HasColumnType("nvarchar(max)"); b.Property("ShipMaterailCode") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("ErpMaterialCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_relationship"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("CarCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("KENNCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("State") .HasColumnType("int"); b.Property("Year") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("YearKennCode") .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.HasKey("Id"); b.ToTable("Set_prebatch"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DiffQty") .HasColumnType("decimal(18,2)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("InvoiceQty") .HasColumnType("decimal(18,2)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("MaterialCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ParentId") .HasColumnType("uniqueidentifier"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SettleQty") .HasColumnType("decimal(18,2)"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Set_InvoiceSettledDiff"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CreatorName") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CustomCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("CustomName") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("ProjectName") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("Year") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.HasKey("Id"); b.ToTable("Set_InvoiceSettledDiffVersion"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CreatorName") .HasColumnType("nvarchar(max)"); b.Property("CustomCode") .HasColumnType("nvarchar(max)"); b.Property("CustomName") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("DocumentStatus") .HasColumnType("int"); b.Property("DocumentType") .HasColumnType("int"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("BranchId", "DocumentNumber") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_sec_act_adjustment_report"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("Buyer") .HasColumnType("nvarchar(max)"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomItemCode") .HasColumnType("nvarchar(450)"); b.Property("CustomItemDesc") .HasColumnType("nvarchar(max)"); b.Property("CustomSubItemCode") .HasColumnType("nvarchar(450)"); b.Property("CustomSubItemDesc") .HasColumnType("nvarchar(max)"); b.Property("CustomSubItemPrice") .HasColumnType("decimal(18,2)"); b.Property("CustomSubItemSumQty") .HasColumnType("decimal(18,2)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DocumentId") .HasColumnType("uniqueidentifier"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ErpSubItemActualQty") .HasColumnType("decimal(18,2)"); b.Property("ErpSubItemCode") .HasColumnType("nvarchar(max)"); b.Property("ErpSubItemQty") .HasColumnType("decimal(18,2)"); b.Property("HasChanged") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("OfflineQty") .HasColumnType("decimal(18,2)"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SumPriceNoTax") .HasColumnType("decimal(18,2)"); b.Property("SumPriceWithTax") .HasColumnType("decimal(18,2)"); b.Property("SupplierCode") .HasColumnType("nvarchar(450)"); b.Property("SupplierDesc") .HasColumnType("nvarchar(max)"); b.Property("SupplyProportion") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasColumnType("nvarchar(450)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("DocumentId"); b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_sec_act_adjustment_report_detail"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CreatorName") .HasColumnType("nvarchar(max)"); b.Property("CustomCode") .HasColumnType("nvarchar(max)"); b.Property("CustomName") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("DocumentStatus") .HasColumnType("int"); b.Property("DocumentType") .HasColumnType("int"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("BranchId", "DocumentNumber") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_sec_act_diff_report"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("ActNoTaxAmount") .HasColumnType("decimal(18,2)"); b.Property("ActPaymentPartyQty") .HasColumnType("decimal(18,2)"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomItemCode") .HasColumnType("nvarchar(450)"); b.Property("CustomItemDesc") .HasColumnType("nvarchar(max)"); b.Property("CustomSubItemCode") .HasColumnType("nvarchar(450)"); b.Property("CustomSubItemDesc") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DiffAmount") .HasColumnType("decimal(18,2)"); b.Property("DiffQty") .HasColumnType("decimal(18,2)"); b.Property("DocumentId") .HasColumnType("uniqueidentifier"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ErpSubItemCode") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("StaPaymentPartyQty") .HasColumnType("decimal(18,2)"); b.Property("StdNoTaxAmount") .HasColumnType("decimal(18,2)"); b.Property("SupplierCode") .HasColumnType("nvarchar(450)"); b.Property("SupplierDesc") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasColumnType("nvarchar(450)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("DocumentId"); b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_sec_act_diff_report_detail"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BeginTime") .HasColumnType("datetime2"); b.Property("BeginVersion") .HasColumnType("nvarchar(max)"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CreatorName") .HasColumnType("nvarchar(max)"); b.Property("CustomCode") .HasColumnType("nvarchar(max)"); b.Property("CustomName") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("DocumentStatus") .HasColumnType("int"); b.Property("DocumentType") .HasColumnType("int"); b.Property("Enabled") .HasColumnType("bit"); b.Property("EndTime") .HasColumnType("datetime2"); b.Property("EndVersion") .HasColumnType("nvarchar(max)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("BranchId", "DocumentNumber") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_send_unsettled_report"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("CP5Time") .HasColumnType("datetime2"); b.Property("ChassisNumber") .HasColumnType("nvarchar(450)"); b.Property("ChassisNumber2") .HasColumnType("nvarchar(max)"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DocumentId") .HasColumnType("uniqueidentifier"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("Extend1") .HasColumnType("nvarchar(max)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("FISYear") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("ItemCode") .HasColumnType("nvarchar(450)"); b.Property("ItemDesc") .HasColumnType("nvarchar(max)"); b.Property("KENNCode") .HasColumnType("nvarchar(max)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Model") .HasColumnType("nvarchar(max)"); b.Property("OrderBillNum") .HasColumnType("nvarchar(max)"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Qty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("SequenceNumber") .HasColumnType("nvarchar(max)"); b.Property("SettledQty") .HasColumnType("decimal(18,2)"); b.Property("Status") .HasColumnType("int"); b.Property("Version") .HasColumnType("nvarchar(450)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_send_unsettled_report_detail"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CreatorName") .HasColumnType("nvarchar(max)"); b.Property("CustomCode") .HasColumnType("nvarchar(max)"); b.Property("CustomName") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("DocumentStatus") .HasColumnType("int"); b.Property("DocumentType") .HasColumnType("int"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("BranchId", "DocumentNumber") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_stock_fis_diff_report"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomCode") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DiffQty") .HasColumnType("decimal(18,2)"); b.Property("DocumentId") .HasColumnType("uniqueidentifier"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("EstimationType") .HasColumnType("nvarchar(max)"); b.Property("FisQty") .HasColumnType("decimal(18,2)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("ItemCode") .HasColumnType("nvarchar(450)"); b.Property("ItemDesc") .HasColumnType("nvarchar(max)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("StockQty") .HasColumnType("decimal(18,2)"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("DocumentId"); b.HasIndex("BranchId", "DocumentId", "ItemCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_stock_fis_diff_report_detail"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CreatorName") .HasColumnType("nvarchar(max)"); b.Property("CustomCode") .HasColumnType("nvarchar(max)"); b.Property("CustomName") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("DocumentStatus") .HasColumnType("int"); b.Property("DocumentType") .HasColumnType("int"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("BranchId", "DocumentNumber") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_stock_settled_report"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomCode") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DiffQty") .HasColumnType("decimal(18,2)"); b.Property("DocumentId") .HasColumnType("uniqueidentifier"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("EstimationType") .HasColumnType("nvarchar(max)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("ItemCode") .HasColumnType("nvarchar(450)"); b.Property("ItemDesc") .HasColumnType("nvarchar(max)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("R3SettledQty") .HasColumnType("decimal(18,2)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("StockQty") .HasColumnType("decimal(18,2)"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("DocumentId"); b.HasIndex("BranchId", "DocumentId", "ItemCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_stock_settled_report_detail"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CreatorName") .HasColumnType("nvarchar(max)"); b.Property("CustomCode") .HasColumnType("nvarchar(max)"); b.Property("CustomName") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("DocumentStatus") .HasColumnType("int"); b.Property("DocumentType") .HasColumnType("int"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("BranchId", "DocumentNumber") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_stock_unsettled_report"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasMaxLength(36) .HasColumnType("uniqueidentifier"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomCode") .HasColumnType("nvarchar(max)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("DiffQty") .HasColumnType("decimal(18,2)"); b.Property("DocumentId") .HasColumnType("uniqueidentifier"); b.Property("DocumentNumber") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); b.Property("Enabled") .HasColumnType("bit"); b.Property("EstimationType") .HasColumnType("nvarchar(max)"); b.Property("FisUnSettledQty") .HasColumnType("decimal(18,2)"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("ItemCode") .HasColumnType("nvarchar(450)"); b.Property("ItemDesc") .HasColumnType("nvarchar(max)"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Period") .HasColumnType("nvarchar(max)"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.Property("StockQty") .HasColumnType("decimal(18,2)"); b.Property("Version") .HasColumnType("nvarchar(max)"); b.Property("Year") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("DocumentId"); b.HasIndex("BranchId", "DocumentId", "ItemCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_stock_unsettled_report_detail"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BranchId") .HasColumnType("uniqueidentifier"); b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); b.Property("CreatorId") .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); b.Property("CustomerCode") .HasColumnType("nvarchar(450)"); b.Property("CustomerSupplierCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("DeleterId") .HasColumnType("uniqueidentifier") .HasColumnName("DeleterId"); b.Property("DeletionTime") .HasColumnType("datetime2") .HasColumnName("DeletionTime"); b.Property("Enabled") .HasColumnType("bit"); b.Property("ErpItemCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ErpSupplierCode") .IsRequired() .HasMaxLength(36) .HasColumnType("nvarchar(36)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false) .HasColumnName("IsDeleted"); b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); b.Property("LastModifierId") .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); b.Property("Remark") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") .IsUnique() .HasFilter("IsDeleted=0"); b.ToTable("Set_supplier_item_setup"); }); modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => { b.Property("UpstreamDocumentId") .ValueGeneratedOnAdd() .HasColumnType("uniqueidentifier"); b.Property("BTNotConsignReportId") .HasColumnType("uniqueidentifier"); b.Property("BTSeqKBDiffReportId") .HasColumnType("uniqueidentifier"); b.Property("EstimatedStockDiffReportId") .HasColumnType("uniqueidentifier"); b.Property("JFNotConsignReportId") .HasColumnType("uniqueidentifier"); b.Property("SecondaryActuralAdjustmentReportId") .HasColumnType("uniqueidentifier"); b.Property("SecondaryActuralDiffReportId") .HasColumnType("uniqueidentifier"); b.Property("SendUnsettledDiffReportId") .HasColumnType("uniqueidentifier"); b.Property("Seq") .HasColumnType("int"); b.Property("StockFisDiffReportId") .HasColumnType("uniqueidentifier"); b.Property("StockSettledDiffReportId") .HasColumnType("uniqueidentifier"); b.Property("StockUnsettledDiffReportId") .HasColumnType("uniqueidentifier"); b.Property("UpstreamDocumentNumber") .HasColumnType("nvarchar(max)"); b.Property("UpstreamDocumentType") .HasColumnType("int"); b.HasKey("UpstreamDocumentId"); b.HasIndex("BTNotConsignReportId"); b.HasIndex("BTSeqKBDiffReportId"); b.HasIndex("EstimatedStockDiffReportId"); b.HasIndex("JFNotConsignReportId"); b.HasIndex("SecondaryActuralAdjustmentReportId"); b.HasIndex("SecondaryActuralDiffReportId"); b.HasIndex("SendUnsettledDiffReportId"); b.HasIndex("StockFisDiffReportId"); b.HasIndex("StockSettledDiffReportId"); b.HasIndex("StockUnsettledDiffReportId"); b.ToTable("UpstreamDocument"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => { b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) .WithMany("BTNotConsignReportDetails") .HasForeignKey("DocumentId") .OnDelete(DeleteBehavior.NoAction) .IsRequired(); }); modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => { b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) .WithMany("BTSeqKBDiffReportDetails") .HasForeignKey("DocumentId") .OnDelete(DeleteBehavior.NoAction) .IsRequired(); }); modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => { b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) .WithMany("EstimatedStockDiffReportDetails") .HasForeignKey("DocumentId") .OnDelete(DeleteBehavior.NoAction) .IsRequired(); }); modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => { b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) .WithMany("JFNotConsignReportDetails") .HasForeignKey("DocumentId") .OnDelete(DeleteBehavior.NoAction) .IsRequired(); }); modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => { b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) .WithMany("SecondaryActuralAdjustmentReportDetails") .HasForeignKey("DocumentId") .OnDelete(DeleteBehavior.NoAction) .IsRequired(); }); modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => { b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) .WithMany("SecondaryActuralDiffReportDetails") .HasForeignKey("DocumentId") .OnDelete(DeleteBehavior.NoAction) .IsRequired(); }); modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => { b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) .WithMany("StockFisDiffReportDetails") .HasForeignKey("DocumentId") .OnDelete(DeleteBehavior.NoAction) .IsRequired(); }); modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => { b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) .WithMany("StockSettledDiffReportDetails") .HasForeignKey("DocumentId") .OnDelete(DeleteBehavior.NoAction) .IsRequired(); }); modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => { b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) .WithMany("StockUnsettledDiffReportDetails") .HasForeignKey("DocumentId") .OnDelete(DeleteBehavior.NoAction) .IsRequired(); }); modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => { b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) .WithMany("UpstreamDocuments") .HasForeignKey("BTNotConsignReportId"); b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) .WithMany("UpstreamDocuments") .HasForeignKey("BTSeqKBDiffReportId"); b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) .WithMany("UpstreamDocuments") .HasForeignKey("EstimatedStockDiffReportId"); b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) .WithMany("UpstreamDocuments") .HasForeignKey("JFNotConsignReportId"); b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) .WithMany("UpstreamDocuments") .HasForeignKey("SecondaryActuralAdjustmentReportId"); b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) .WithMany("UpstreamDocuments") .HasForeignKey("SecondaryActuralDiffReportId"); b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) .WithMany("UpstreamDocuments") .HasForeignKey("SendUnsettledDiffReportId"); b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) .WithMany("UpstreamDocuments") .HasForeignKey("StockFisDiffReportId"); b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) .WithMany("UpstreamDocuments") .HasForeignKey("StockSettledDiffReportId"); b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) .WithMany("UpstreamDocuments") .HasForeignKey("StockUnsettledDiffReportId"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => { b.Navigation("BTNotConsignReportDetails"); b.Navigation("UpstreamDocuments"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => { b.Navigation("BTSeqKBDiffReportDetails"); b.Navigation("UpstreamDocuments"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => { b.Navigation("EstimatedStockDiffReportDetails"); b.Navigation("UpstreamDocuments"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => { b.Navigation("JFNotConsignReportDetails"); b.Navigation("UpstreamDocuments"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => { b.Navigation("SecondaryActuralAdjustmentReportDetails"); b.Navigation("UpstreamDocuments"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => { b.Navigation("SecondaryActuralDiffReportDetails"); b.Navigation("UpstreamDocuments"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => { b.Navigation("UpstreamDocuments"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => { b.Navigation("StockFisDiffReportDetails"); b.Navigation("UpstreamDocuments"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => { b.Navigation("StockSettledDiffReportDetails"); b.Navigation("UpstreamDocuments"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => { b.Navigation("StockUnsettledDiffReportDetails"); b.Navigation("UpstreamDocuments"); }); #pragma warning restore 612, 618 } } }