//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Volo.Abp.EntityFrameworkCore;
using Win_in.Sfs.Basedata;
namespace Win_in.Sfs.Basedata.Migrations
{
[DbContext(typeof(BasedataHttpApiHostMigrationsDbContext))]
partial class BasedataHttpApiHostMigrationsDbContextModelSnapshot : 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.17")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.AQL", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("CeilingQty")
.HasColumnType("decimal(18,2)");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("FloorQty")
.HasColumnType("decimal(18,2)");
b.Property("IsUsePercent")
.HasColumnType("bit");
b.Property("ItemCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("SamplePercent")
.HasColumnType("decimal(18,2)");
b.Property("SampleQty")
.HasColumnType("decimal(18,2)");
b.Property("SupplierCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("SupplierCode", "ItemCode", "FloorQty", "Company")
.IsUnique();
b.ToTable("Basedata_AQL");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Area", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("AreaType")
.HasColumnType("int");
b.Property("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("Description")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("IsFunctional")
.HasColumnType("bit");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Name")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property("WarehouseCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.HasKey("Id");
b.HasIndex("Code", "Company")
.IsUnique();
b.ToTable("Basedata_Area");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.AreaItem", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Allowed")
.HasColumnType("bit");
b.Property("AreaId")
.HasMaxLength(64)
.HasColumnType("uniqueidentifier");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("ItemId")
.HasMaxLength(64)
.HasColumnType("uniqueidentifier");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property("UomId")
.HasMaxLength(64)
.HasColumnType("uniqueidentifier");
b.HasKey("Id");
b.HasIndex("Company", "AreaId", "ItemId")
.IsUnique();
b.ToTable("Basedata_AreaItem");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Bom", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("Component")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("DistributionType")
.HasColumnType("int");
b.Property("ERPOp")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Layer")
.ValueGeneratedOnAdd()
.HasMaxLength(64)
.HasColumnType("int")
.HasDefaultValue(1);
b.Property("MFGOp")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("PlannedSplitRule")
.HasColumnType("int");
b.Property("Product")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property("TruncType")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("Product", "Company", "Component")
.IsUnique();
b.ToTable("Basedata_Bom");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Calendar", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Module")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
b.Property("Status")
.HasColumnType("int");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Company")
.IsUnique();
b.ToTable("Basedata_Calendar");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Category", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("Description")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Name")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Code", "Company")
.IsUnique();
b.ToTable("Basedata_Category");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Company", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("Description")
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("FullName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Logo")
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.Property("Name")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("PrimaryProduct")
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property("Type")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.HasKey("Id");
b.HasIndex("Code", "Company")
.IsUnique();
b.ToTable("Basedata_Company");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Configuration", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("Description")
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("Key")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property("Value")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.HasKey("Id");
b.HasIndex("Company")
.IsUnique();
b.ToTable("Basedata_Configuration");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Currency", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("Description")
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("IsBasicCurrency")
.HasColumnType("bit");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Name")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Code", "Company")
.IsUnique();
b.ToTable("Basedata_Currency");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CurrencyExchange", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("BasicCurrencyId")
.HasColumnType("uniqueidentifier");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("CurrencyId")
.HasColumnType("uniqueidentifier");
b.Property("EfficetiveTime")
.HasColumnType("datetime2");
b.Property("ExpireTime")
.HasColumnType("datetime2");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Rate")
.HasColumnType("decimal(18,2)");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Company", "CurrencyId", "BasicCurrencyId")
.IsUnique();
b.ToTable("Basedata_CurrencyExchange");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Customer", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Address")
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.Property("City")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("Contacts")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Country")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("Currency")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("Fax")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("IsActive")
.HasColumnType("bit");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Name")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Phone")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("PostID")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property("Type")
.HasMaxLength(64)
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("Code", "Company")
.IsUnique();
b.ToTable("Basedata_Customer");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerAddress", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Address")
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.Property("City")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("Contact")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("CustomerCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Desc")
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("LocationCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Name")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Remark")
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property("WarehouseCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.HasKey("Id");
b.HasIndex("Company", "Code", "CustomerCode")
.IsUnique();
b.ToTable("Basedata_CustomerAddress");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerBom", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("ChildItemId")
.HasMaxLength(64)
.HasColumnType("uniqueidentifier");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("CustomerId")
.HasMaxLength(64)
.HasColumnType("uniqueidentifier");
b.Property("EffectiveTime")
.HasColumnType("datetime2");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("FailureTime")
.HasColumnType("datetime2");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("ParentItemId")
.HasMaxLength(64)
.HasColumnType("uniqueidentifier");
b.Property("Qty")
.HasColumnType("decimal(18,2)");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Company", "CustomerId", "ParentItemId", "ChildItemId")
.IsUnique();
b.ToTable("Basedata_CustomerBom");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerItem", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("CustomerCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("CustomerItemCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("ItemCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property("Version")
.HasMaxLength(1024)
.HasColumnType("nvarchar(1024)");
b.HasKey("Id");
b.HasIndex("Company", "CustomerCode", "ItemCode")
.IsUnique();
b.ToTable("Basedata_CustomerItem");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dock", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("DefaultLocationCode")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Description")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Name")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property("WarehouseCode")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.HasKey("Id");
b.HasIndex("Code", "Company")
.IsUnique();
b.ToTable("Basedata_Dock");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ErpLocation", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Company")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)")
.HasColumnName("Company");
b.Property("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("nvarchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property("CreationTime")
.HasColumnType("datetime2")
.HasColumnName("CreationTime");
b.Property("CreatorId")
.HasColumnType("uniqueidentifier")
.HasColumnName("CreatorId");
b.Property("Description")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)");
b.Property("ExtraProperties")
.HasColumnType("nvarchar(max)")
.HasColumnName("ExtraProperties");
b.Property("LastModificationTime")
.HasColumnType("datetime2")
.HasColumnName("LastModificationTime");
b.Property("LastModifierId")
.HasColumnType("uniqueidentifier")
.HasColumnName("LastModifierId");
b.Property("Name")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Remark")
.HasMaxLength(4096)
.HasColumnType("nvarchar(max)")
.HasColumnName("Remark");
b.Property("TenantId")
.HasColumnType("uniqueidentifier")
.HasColumnName("TenantId");
b.Property("Type")
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("WarehouseCode")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.HasKey("Id");
b.HasIndex("Code", "Company")
.IsUnique();
b.ToTable("Basedata_ErpLocation");
});
modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.InterfaceCalendar", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property("BeginTime")
.HasColumnType("datetime2");
b.Property("Code")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("nvarchar(64)");
b.Property("Company")
.HasColumnType("nvarchar(450)");
b.Property