You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9290 lines
355 KiB
9290 lines
355 KiB
// <auto-generated />
|
|
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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("KBCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasPrecision(18, 2)
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("State")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<decimal>("ConsignQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<DateTime>("DateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<DateTime>("DeliveryDateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("NeedQty")
|
|
.HasPrecision(18, 2)
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("OrderKBCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ReceiveAreaCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ReceiveAreaName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("State")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("BarCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<DateTime>("DT")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<DateTime>("OnLineDateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("VIN")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("BarCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("CMSerie")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CMSerieRemark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CarModelShort")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CarName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CarType")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Code")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Color")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<DateTime>("DateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("EngineCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("InColor")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<DateTime>("OnLineDateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("OrderStateNum")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("PlanDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("PlanSeq")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("PlanTypeRemark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SpecialCarTypeRemark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("StateName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("TopSeq")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("VIN")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("BarCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<DateTime>("DT")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<DateTime>("OnLineDateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(1024)
|
|
.HasColumnType("nvarchar(1024)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("VIN")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("BeginTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CreatorName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("DocumentStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("DocumentType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime>("EndTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<decimal>("ConsignQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<DateTime>("DeliveryDateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("DocumentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("NeedQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("OrderKBCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CreatorName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("DocumentStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("DocumentType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<DateTime>("DT")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<decimal>("DiffQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<Guid>("DocumentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<decimal>("KBQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("SeqQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<int>("BomLevel")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("BomType")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ChildItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ChildItemDesc")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("nvarchar(2048)");
|
|
|
|
b.Property<string>("ChildItemUom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<DateTime>("EffectiveTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime>("ExpireTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("IssuePosition")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<int>("OperateProcess")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ParentItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ParentItemDesc")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("nvarchar(2048)");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("ScrapPercent")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Address")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("nvarchar(2048)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Code")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<string>("Contact")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ContactEmail")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ContactFax")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ContactPhone")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid>("CurrencyId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<int?>("CustomerType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("nvarchar(2048)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal?>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ChildItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<DateTime>("EffectiveTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<DateTime>("FailureTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("ParentItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<DateTime>("DateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<DateTime>("DT")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<DateTime>("DateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<DateTime>("DT")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("CarCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Project")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Postingperiod")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("PurchaseDocument")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PurchaseLine")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SupplierDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Set_estsum");
|
|
});
|
|
|
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("BeginTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CP5Time")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CP7Time")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ChassisNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ChassisNumber2")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime>("EndTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ErpMaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Extend1")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("KENNCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Model")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("OrderBillNum")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SequenceNumber")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("SettledQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Code")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("Desc")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("VIN")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("KBCode")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("KBCodeExtend")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<decimal>("ConsignQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("KBCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<decimal>("NeedQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("VIN")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<decimal>("ConsignQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("KBCode")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<decimal>("NeedQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsCheck")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("NewColumnName")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("OldColumnName")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ProjectName")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Set_importmap");
|
|
});
|
|
|
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("AccountDate")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Accounting")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal>("Amt")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("InputDate")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Number")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("TextCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Set_Invoice");
|
|
});
|
|
|
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Set_InvoiceVersion");
|
|
});
|
|
|
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Backorder")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("CC")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<decimal>("ExtendedMargin")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("ExtendedPrice")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<decimal>("Price")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Sales")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SubAcct")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("UM")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("AppraisalCategory")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ErpMaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialProperty")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SettleMaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ShipMaterailCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Set_MaterialRelationshipDetail");
|
|
});
|
|
|
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Set_MaterialRelationshipVersion");
|
|
});
|
|
|
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("EstimateType")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("EstimateTypeDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("BeginDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime>("EndDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<decimal>("Price")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("Type")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Set_PriceList");
|
|
});
|
|
|
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Set_PriceListVersion");
|
|
});
|
|
|
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecMatch.SecMatchBase", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Buyer")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<decimal>("DiffAmount")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("DiffPrice")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Index")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<bool>("IsDiffNumber")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("IsSettle")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialPartCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Model")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PartType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal>("Price")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("RealSettlementNumber")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("RealSettlementPrice")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SettleMentPartCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal>("SettlementNumber")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("SettlementPrice")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal>("SupplyProportion")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("TheoreticalSettlementNumber")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("UsedNumber")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Set_SecMatchBase");
|
|
});
|
|
|
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<decimal>("Amt")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Buyer")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerComponentCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("CustomerMaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("HasChanged")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<decimal>("Total")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<decimal>("Amt")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Buyer")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("HasChanged")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<decimal>("Total")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<decimal>("CustomItemPrice")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("CustomSubItemCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<decimal>("CustomSubItemPrice")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("SupplierDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SupplyProportion")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("SupplyProportionPrice")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CP5A")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CP7")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ChassisNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("KENNCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Model")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SettleYear")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SettlementID")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("SettlementSupplier")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<int>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CP5A")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CP7")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ChassisNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("KENNCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Model")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SettleYear")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SettlementID")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("SettlementSupplier")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("UnsettledReason")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<int>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("BomMaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Buyer")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Model")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PartType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SettlementMaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SupplierDesc")
|
|
.HasMaxLength(128)
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ApplicableFunction")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ErpSparePartCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ErpSparePartName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Model")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PartType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal>("PerCarNum")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal>("Price")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("ProductLine")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("QADCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal>("QuantityPrice")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SettlementPartCode")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SettlementPartDesc")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SupplyProportion")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Set_SettlementPakAndSpareParts");
|
|
});
|
|
|
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Model")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<decimal>("Price")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SettlementPartCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("SettlementPartDesc")
|
|
.HasMaxLength(2048)
|
|
.HasColumnType("nvarchar(2048)");
|
|
|
|
b.Property<string>("Uom")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("CustomerDesc")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ActionName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<string>("Creator")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("DownFileName")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("Email")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Error")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("FileName")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("RealDownFileName")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("RealFileName")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ServiceName")
|
|
.HasMaxLength(300)
|
|
.HasColumnType("nvarchar(300)");
|
|
|
|
b.Property<string>("State")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("TaskId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Type")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Set_TaskJob");
|
|
});
|
|
|
|
modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("BillNumber")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("InvoiceQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("MaterialDocument")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("MaterialDocumentLine")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<DateTime>("PostingDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("PurchaseDocument")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("PurchaseLine")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<decimal>("ReceiveQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Source")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("StorageLocation")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("SupplierDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CreatorName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("DocumentStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("DocumentType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<decimal>("DiffQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<Guid>("DocumentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<decimal>("EstimationQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("EstimationType")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("EstimationTypeDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("FgQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("ItemDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("StockQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("UnSettledQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("BeginTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CP5Time")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CP7Time")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ChassisNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ChassisNumber2")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime>("EndTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ErpMaterialCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Extend1")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("FISYear")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("KENNCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Model")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("OrderBillNum")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SequenceNumber")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("SettleState")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<decimal>("SettledQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("BeginTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CP5Time")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CP7Time")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ChassisNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ChassisNumber2")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime>("EndTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ErpMaterialCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Extend1")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("FISYear")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("KENNCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Model")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("OrderBillNum")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SequenceNumber")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("SettleState")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<decimal>("SettledQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("BeginDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime>("EndDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Model")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Period")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("AppraisalCategory")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("AppraisalDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<decimal>("EndingInventoryQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("Factory")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("InputQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("OpeningInventoryQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("OutputQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<decimal>("Price")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("StorageLocation")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("StorageLocationDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Unit")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Version")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("PABillNum")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasPrecision(18, 2)
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("State")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("BillNum")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<decimal>("ConsignQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<decimal>("InStockQty")
|
|
.HasPrecision(18, 2)
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<DateTime>("OnLineDateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("State")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("BeginTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CreatorName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("DocumentStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("DocumentType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime>("EndTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("BillNum")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<decimal>("ConsignQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<Guid>("DocumentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<decimal>("InStockQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("OnLineDateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("AppraisalCategory")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ErpMaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("MaterialProperty")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SettleMaterialCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("CarCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("KENNCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("State")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("YearKennCode")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("KENNCode", "State")
|
|
.IsUnique()
|
|
.HasFilter("IsDeleted=0");
|
|
|
|
b.ToTable("Set_prebatch");
|
|
});
|
|
|
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<decimal>("DiffQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<decimal>("InvoiceQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid>("ParentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("SettleQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Set_InvoiceSettledDiff");
|
|
});
|
|
|
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CreatorName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("CustomName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ProjectName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Year")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Set_InvoiceSettledDiffVersion");
|
|
});
|
|
|
|
modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CreatorName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("DocumentStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("DocumentType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Buyer")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomItemCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("CustomItemDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomSubItemCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("CustomSubItemDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("CustomSubItemPrice")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("CustomSubItemSumQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<Guid>("DocumentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<decimal>("ErpSubItemActualQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("ErpSubItemCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("ErpSubItemQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("HasChanged")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<decimal>("OfflineQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("SumPriceNoTax")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("SumPriceWithTax")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("SupplierDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SupplyProportion")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CreatorName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("DocumentStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("DocumentType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<decimal>("ActNoTaxAmount")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("ActPaymentPartyQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomItemCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("CustomItemDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomSubItemCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("CustomSubItemDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<decimal>("DiffAmount")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("DiffQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<Guid>("DocumentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ErpSubItemCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("StaPaymentPartyQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("StdNoTaxAmount")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("SupplierDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("BeginTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("BeginVersion")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CreatorName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("DocumentStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("DocumentType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime>("EndTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("EndVersion")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CP5Time")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ChassisNumber")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("ChassisNumber2")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<Guid>("DocumentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Extend1")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<string>("FISYear")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("ItemDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("KENNCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Model")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("OrderBillNum")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("Qty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("SequenceNumber")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("SettledQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CreatorName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("DocumentStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("DocumentType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<decimal>("DiffQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<Guid>("DocumentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("EstimationType")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("FisQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("ItemDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("StockQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CreatorName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("DocumentStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("DocumentType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<decimal>("DiffQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<Guid>("DocumentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("EstimationType")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("ItemDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("R3SettledQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("StockQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CreatorName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("CustomName")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<int>("DocumentStatus")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("DocumentType")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasMaxLength(36)
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomCode")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<decimal>("DiffQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<Guid>("DocumentId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("DocumentNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("EstimationType")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("FisUnSettledQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<string>("ItemCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("ItemDesc")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("Period")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<decimal>("StockQty")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("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<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid>("BranchId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasMaxLength(40)
|
|
.HasColumnType("nvarchar(40)")
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreationTime");
|
|
|
|
b.Property<Guid?>("CreatorId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("CreatorId");
|
|
|
|
b.Property<string>("CustomerCode")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("CustomerSupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<Guid?>("DeleterId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("DeleterId");
|
|
|
|
b.Property<DateTime?>("DeletionTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("DeletionTime");
|
|
|
|
b.Property<bool>("Enabled")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ErpItemCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ErpSupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(36)
|
|
.HasColumnType("nvarchar(36)");
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
.HasColumnType("nvarchar(max)")
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false)
|
|
.HasColumnName("IsDeleted");
|
|
|
|
b.Property<DateTime?>("LastModificationTime")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("LastModificationTime");
|
|
|
|
b.Property<Guid?>("LastModifierId")
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("LastModifierId");
|
|
|
|
b.Property<string>("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<Guid>("UpstreamDocumentId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid?>("BTNotConsignReportId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid?>("BTSeqKBDiffReportId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid?>("EstimatedStockDiffReportId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid?>("JFNotConsignReportId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid?>("SecondaryActuralAdjustmentReportId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid?>("SecondaryActuralDiffReportId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid?>("SendUnsettledDiffReportId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<int>("Seq")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<Guid?>("StockFisDiffReportId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid?>("StockSettledDiffReportId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<Guid?>("StockUnsettledDiffReportId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("UpstreamDocumentNumber")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("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
|
|
}
|
|
}
|
|
}
|
|
|