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.
1254 lines
47 KiB
1254 lines
47 KiB
4 years ago
|
// <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.Entities.Invoices.Invoice", 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>("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>("Extend")
|
||
|
.HasColumnType("nvarchar(max)");
|
||
|
|
||
|
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>("MaterialCode")
|
||
|
.IsRequired()
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<string>("MaterialDesc")
|
||
|
.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")
|
||
|
.HasMaxLength(1000)
|
||
|
.HasColumnType("nvarchar(1000)");
|
||
|
|
||
|
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<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.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.VWKanBan.KanBanSettle", b =>
|
||
|
{
|
||
|
b.Property<Guid>("Id")
|
||
|
.ValueGeneratedOnAdd()
|
||
|
.HasColumnType("uniqueidentifier");
|
||
|
|
||
|
b.Property<string>("Batch")
|
||
|
.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<Guid?>("DeleterId")
|
||
|
.HasColumnType("uniqueidentifier")
|
||
|
.HasColumnName("DeleterId");
|
||
|
|
||
|
b.Property<DateTime?>("DeletionTime")
|
||
|
.HasColumnType("datetime2")
|
||
|
.HasColumnName("DeletionTime");
|
||
|
|
||
|
b.Property<bool>("Enabled")
|
||
|
.HasColumnType("bit");
|
||
|
|
||
|
b.Property<string>("Extend")
|
||
|
.HasColumnType("nvarchar(max)");
|
||
|
|
||
|
b.Property<string>("ExtraProperties")
|
||
|
.HasColumnType("nvarchar(max)")
|
||
|
.HasColumnName("ExtraProperties");
|
||
|
|
||
|
b.Property<string>("Factory")
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<string>("Flag")
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<bool>("IsDeleted")
|
||
|
.ValueGeneratedOnAdd()
|
||
|
.HasColumnType("bit")
|
||
|
.HasDefaultValue(false)
|
||
|
.HasColumnName("IsDeleted");
|
||
|
|
||
|
b.Property<string>("Kanban")
|
||
|
.IsRequired()
|
||
|
.HasMaxLength(150)
|
||
|
.HasColumnType("nvarchar(150)");
|
||
|
|
||
|
b.Property<DateTime?>("LastModificationTime")
|
||
|
.HasColumnType("datetime2")
|
||
|
.HasColumnName("LastModificationTime");
|
||
|
|
||
|
b.Property<Guid?>("LastModifierId")
|
||
|
.HasColumnType("uniqueidentifier")
|
||
|
.HasColumnName("LastModifierId");
|
||
|
|
||
|
b.Property<string>("MaterialCode")
|
||
|
.IsRequired()
|
||
|
.HasMaxLength(150)
|
||
|
.HasColumnType("nvarchar(150)");
|
||
|
|
||
|
b.Property<Guid>("ParentId")
|
||
|
.HasColumnType("uniqueidentifier");
|
||
|
|
||
|
b.Property<string>("PartType")
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<string>("Period")
|
||
|
.HasColumnType("nvarchar(max)");
|
||
|
|
||
|
b.Property<decimal>("Qty")
|
||
|
.HasColumnType("decimal(18,2)");
|
||
|
|
||
|
b.Property<string>("Relation")
|
||
|
.HasMaxLength(100)
|
||
|
.HasColumnType("nvarchar(100)");
|
||
|
|
||
|
b.Property<string>("Remark")
|
||
|
.HasColumnType("nvarchar(max)");
|
||
|
|
||
|
b.Property<DateTime>("SettleDate")
|
||
|
.HasColumnType("datetime2");
|
||
|
|
||
|
b.Property<DateTime>("SettleInputDate")
|
||
|
.HasColumnType("datetime2");
|
||
|
|
||
|
b.Property<string>("State")
|
||
|
.HasColumnType("nvarchar(max)");
|
||
|
|
||
|
b.Property<string>("SupplierCode")
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<string>("Version")
|
||
|
.HasColumnType("nvarchar(max)");
|
||
|
|
||
|
b.Property<string>("Year")
|
||
|
.HasColumnType("nvarchar(max)");
|
||
|
|
||
|
b.HasKey("Id");
|
||
|
|
||
|
b.HasIndex("Kanban", "MaterialCode")
|
||
|
.IsUnique()
|
||
|
.HasFilter("IsDeleted=0");
|
||
|
|
||
|
b.ToTable("Set_KanBanSettle");
|
||
|
});
|
||
|
|
||
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWKanBan.KanBanVersion", b =>
|
||
|
{
|
||
|
b.Property<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")
|
||
|
.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_KanBanSettle_Version");
|
||
|
});
|
||
|
|
||
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWScrapClaims.ScrapClaims", 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>("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>("Extend")
|
||
|
.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>("MaterialCode")
|
||
|
.IsRequired()
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<string>("MaterialDesc")
|
||
|
.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")
|
||
|
.HasMaxLength(1000)
|
||
|
.HasColumnType("nvarchar(1000)");
|
||
|
|
||
|
b.Property<string>("Type")
|
||
|
.IsRequired()
|
||
|
.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_ScrapClaims");
|
||
|
});
|
||
|
|
||
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWScrapClaims.ScrapClaimsVersion", 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")
|
||
|
.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_ScrapClaims_Version");
|
||
|
});
|
||
|
|
||
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWSparePart.SparePart", b =>
|
||
|
{
|
||
|
b.Property<Guid>("Id")
|
||
|
.ValueGeneratedOnAdd()
|
||
|
.HasColumnType("uniqueidentifier");
|
||
|
|
||
|
b.Property<string>("AccountNum")
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<decimal>("AmountNoTax")
|
||
|
.HasColumnType("decimal(18,2)");
|
||
|
|
||
|
b.Property<string>("BatchNo")
|
||
|
.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<Guid?>("DeleterId")
|
||
|
.HasColumnType("uniqueidentifier")
|
||
|
.HasColumnName("DeleterId");
|
||
|
|
||
|
b.Property<DateTime?>("DeletionTime")
|
||
|
.HasColumnType("datetime2")
|
||
|
.HasColumnName("DeletionTime");
|
||
|
|
||
|
b.Property<string>("DeliveryLineNum")
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<string>("DeliveryOrderNo")
|
||
|
.IsRequired()
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<bool>("Enabled")
|
||
|
.HasColumnType("bit");
|
||
|
|
||
|
b.Property<string>("Extend")
|
||
|
.HasMaxLength(250)
|
||
|
.HasColumnType("nvarchar(250)");
|
||
|
|
||
|
b.Property<string>("ExtraProperties")
|
||
|
.HasColumnType("nvarchar(max)")
|
||
|
.HasColumnName("ExtraProperties");
|
||
|
|
||
|
b.Property<string>("Factory")
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<string>("FactoryName")
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<string>("GermanInvoiceNo")
|
||
|
.HasMaxLength(100)
|
||
|
.HasColumnType("nvarchar(100)");
|
||
|
|
||
|
b.Property<decimal>("InvoicedQty")
|
||
|
.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>("LineNumber")
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<string>("MaterialCode")
|
||
|
.IsRequired()
|
||
|
.HasMaxLength(150)
|
||
|
.HasColumnType("nvarchar(150)");
|
||
|
|
||
|
b.Property<string>("MaterialDesc")
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<string>("Period")
|
||
|
.HasMaxLength(36)
|
||
|
.HasColumnType("nvarchar(36)");
|
||
|
|
||
|
b.Property<string>("PurchaseOrderNo")
|
||
|
.IsRequired()
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<string>("PurchaseOrderNoItem")
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<string>("PurchaseOrderNoText")
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<decimal>("PurchasePriceNoTax")
|
||
|
.HasColumnType("decimal(18,2)");
|
||
|
|
||
|
b.Property<string>("PurchaseType")
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<decimal>("ReceiptQty")
|
||
|
.HasColumnType("decimal(18,2)");
|
||
|
|
||
|
b.Property<string>("Remark")
|
||
|
.HasColumnType("nvarchar(max)");
|
||
|
|
||
|
b.Property<DateTime>("SpareDate")
|
||
|
.HasColumnType("datetime2");
|
||
|
|
||
|
b.Property<string>("TaxCode")
|
||
|
.HasColumnType("nvarchar(max)");
|
||
|
|
||
|
b.Property<decimal>("TaxRate")
|
||
|
.HasColumnType("decimal(18,2)");
|
||
|
|
||
|
b.Property<string>("Unit")
|
||
|
.HasMaxLength(50)
|
||
|
.HasColumnType("nvarchar(50)");
|
||
|
|
||
|
b.Property<string>("Version")
|
||
|
.HasMaxLength(36)
|
||
|
.HasColumnType("nvarchar(36)");
|
||
|
|
||
|
b.Property<string>("Year")
|
||
|
.HasMaxLength(36)
|
||
|
.HasColumnType("nvarchar(36)");
|
||
|
|
||
|
b.HasKey("Id");
|
||
|
|
||
|
b.ToTable("Set_SparePart");
|
||
|
});
|
||
|
|
||
|
modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWSparePart.SparePartVersion", 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")
|
||
|
.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_SparePart_Version");
|
||
|
});
|
||
|
#pragma warning restore 612, 618
|
||
|
}
|
||
|
}
|
||
|
}
|