//
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.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.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.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